import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 出入库单据查询  dmscloud.report/partreport/queryPartInOutStockReport
export const queryPartInOutStockReport = params => axios.get(`${SERVER.DMSCLOUD_PART}/partreport/queryPartInOutStockReport`, { params });
export const queryPartBuy = params => axios.get(`${SERVER.DMSCLOUD_PART}/partreport/queryPartBuy`, { params });
// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);
export const queryPartBuyCheck = params => axios.get(`${SERVER.DMSCLOUD_PART}/stockmanage/partbuy/stockInOem`, { params });

export const exportPartInOutStockReport = params => axios.get(`${SERVER.DMSCLOUD_PART}/partreport/exportPartInOutStockReport`, {
  params,
  responseType: 'blob'
});